package com.zttek.photosShareProject.modules.service.manager;

import com.baomidou.mybatisplus.plugins.Page;
import com.zttek.photosShareProject.modules.model.Abuse;
import com.zttek.photosShareProject.modules.model.Examine;
import com.zttek.photosShareProject.modules.model.Info;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by 13296 on 2017/8/17.
 */
public interface IAbuseService {
    List<Abuse> selectAllAbuse() throws Exception;
    Page<Abuse> selectAbusePage(Page<Abuse> page)throws Exception;
    Page<Abuse> selectAbuseLikePage(Page<Abuse> page, String value, int select)throws Exception;

    /**
     * 根据id查找举报
     * @param id
     * @return
     * @throws Exception
     */
    Abuse selectAbuseById(Long id)throws Exception;
    /**
     * 根据选择条件分页查询举报
     * @param page
     * @param select
     * @return
     * @throws Exception
     */
    Page<Abuse> selectAbusePage(Page<Abuse> page, int select)throws Exception;

    /**
     * 根据id删除举报
     * @param id
     * @throws Exception
     */
    void deleteAbuseById(Long id)throws Exception;

    /**
     * 更新举报
     * @param abuse
     * @throws Exception
     */
    void updateAbuse(Abuse abuse)throws Exception;

    /**
     * 处理审核
     * @param abuse
     * @param examine
     * @param infoToInformer
     * @param infoToInformant
     * @throws Exception
     */
    void dealExamine(Abuse abuse, Examine examine, Info infoToInformer, Info infoToInformant)throws Exception;


}
